#include <stdio.h>
#include <string.h>

int main()
{
  FILE* pf = fopen("log.txt", "r");
  char buff[1024];
  while(1)
  {
    size_t s = fread(buff, 1, sizeof(buff), pf);
    if(s > 0)
    {
      printf("%s", buff);
    }
    if(feof(pf)) break;
  }

  return 0;
}
